import React, { Component } from 'react'

 class Small extends Component {
  goDetail(){
     this.props.history.push({
         pathname:"/detail2",
         query:{
             name:"zhangsan"
         }
     })
  }
  render() {
    return (
      <div>small
          <button onClick={this.goDetail.bind(this)}>跳转</button>
      </div>
    )
  }
}

export default Small